import type { RouteRecordRaw, RouteRecordRedirectOption } from 'vue-router'

// 给RouteRecordRaw 添加meta类型
export interface IRouteMenuRecordMeta {
  title?: string
  icon?: string
  noCache?: boolean
  dicID?: string | null
  index?: number
  IsOpenWindow?: boolean
  MenuCode?: string
  ParentCode?: string | null
  hidden?: boolean
  alwaysShow?: boolean
  isAuth?: boolean
}

export interface IRouteMenuRecordRaw extends Omit<RouteRecordRaw, 'meta' | 'children'> {
  meta?: IRouteMenuRecordMeta
  children?: IRouteMenuRecordRaw[] | undefined
}
